package db_zh_kernel

import (
	"context"

	"gorm.io/gorm"

	"zhonghui/console/warehouse/dbx"
)

var db *gorm.DB

func init() {
	db = dbx.NewMysql(dbx.DbZhKernel)
}

func Client() *gorm.DB {
	return db
}

func ClientCtx(ctx context.Context) *gorm.DB {
	return db.WithContext(ctx)
}
